package com.xiaoyun.rollutil.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: xiaoyun461
 * @Date: 2021/12/1 18:31
 */
@Data
@Component
public class RollProperties {



    public static String appId;

    public static String appSecret;

    public static String url;

    @Value("${roll.app_id}")
    public void setAppId(String appId) {
        RollProperties.appId = appId;
    }

    @Value("${roll.app_secret}")
    public void setAppSecret(String appSecret) {
        RollProperties.appSecret = appSecret;
    }

    @Value("${roll.base_url}")
    public void setUrl(String url) {
        RollProperties.url = url;
    }
}
